summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-04 02:19:27 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:59 +0200
commit570c4a2c1b9a6144be54a06b50d39d5e14ae77f2 (patch)
tree231b2eed6ed0eba06e5b0168469eead80f3cfbcf
parentvideo_core: Enable support_descriptor_aliasing on Turnip, disable storage atomic otherwise. (diff)
downloadyuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar.gz
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar.bz2
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar.lz
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar.xz
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.tar.zst
yuzu-570c4a2c1b9a6144be54a06b50d39d5e14ae77f2.zip
-rw-r--r--src/android/app/src/main/jni/config.cpp4
-rw-r--r--src/android/app/src/main/jni/default_ini.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp
index 0e86dea9e..785133057 100644
--- a/src/android/app/src/main/jni/config.cpp
+++ b/src/android/app/src/main/jni/config.cpp
@@ -230,6 +230,10 @@ void Config::ReadValues() {
Settings::values.renderer_force_max_clock =
config->GetBoolean("Renderer", "force_max_clock", true);
+ // Enable asynchronous presentation by default on Android
+ Settings::values.async_presentation =
+ config->GetBoolean("Renderer", "async_presentation", true);
+
// Audio
ReadSetting("Audio", Settings::values.sink_id);
ReadSetting("Audio", Settings::values.audio_output_device_id);
diff --git a/src/android/app/src/main/jni/default_ini.h b/src/android/app/src/main/jni/default_ini.h
index cbbe8e9de..d6bf458a6 100644
--- a/src/android/app/src/main/jni/default_ini.h
+++ b/src/android/app/src/main/jni/default_ini.h
@@ -247,6 +247,10 @@ cpuopt_unsafe_ignore_global_monitor =
# 0: OpenGL (unsupported), 1 (default): Vulkan, 2: Null
backend =
+# Whether to enable asynchronous presentation (Vulkan only)
+# 0: Off, 1 (default): On
+async_presentation =
+
# Enable graphics API debugging mode.
# 0 (default): Disabled, 1: Enabled
force_max_clock =